package com.hzdl.apple.service.back;

import java.util.List;

import com.hzdl.apple.bean.User;
import com.hzdl.apple.dao.back.BackUserDao;
import com.hzdl.apple.dao.imp.back.BackUserDaoImp;

public class BackUserService {
	BackUserDao dao;

	public BackUserService() {
		dao = new BackUserDaoImp();
	}

	public int getUserNum() {
		return dao.getUserNum();
	}

	public List<User> getAllUser() {
		return dao.getAllUser();
	}
	
	public boolean addUser(User user){
		return dao.addUser(user);
	}
	
	public boolean updateUser(String uID, User user){
		return dao.updateUser(uID, user);
	}
	public User getUserByID(String uID) {
		return dao.getUserByID(uID);
	}
	public boolean deleteUser(String uID){
		return dao.deleteUser(uID);
	}
}
